#include <syslog.h>

int main(void)
{
	int i;
	char *msg = "I am log for xsj";

	openlog("XSJ", LOG_PID, 0);

	for(i=0;i<10;i++) {
		syslog(LOG_INFO, "%s - %d", msg, i);
		sleep(5);
	}


	closelog();
	return 0;
}
